<div class="configurations form">
<h2><?php echo __d('configurations','Main configuration'); ?></h2>
	<div class="clear"></div>
	<div class="actions selected">
		<?php 
			$domain_id = $this->Form->value('Configuration.domain_id'); if(!empty($domain_id)) echo $this->Html->link(__d('configurations','Cancel'), array('controller'=>'domains','action' => 'view',$domain_id,'d'=>'settings'), array('class'=>'action-left'));
			echo $this->Form->postLink(__d('configurations','Delete'), array('action' => 'delete', $this->Form->value('Configuration.id'),'d'=>$domain_id), array('style'=>'margin-right: 25px;','class'=>'action-right'), __d('configurations','Are you sure you want to delete # %s?', $this->Form->value('Configuration.id'))); 
		?>
	</div>
	<div class="clear"></div>

	
<?php echo $this->Form->create('Configuration', array('type' => 'file'));?>
	<fieldset>
	
	<?php
		echo $this->Form->input('id');
		echo $this->Form->hidden('domain_id');
		echo $this->Form->hidden('cfg_group_id',0);
		echo $this->Form->input('name');
		echo $this->Form->input('value',array('options'=>array(0=>__d('configurations','Disable',true),1=>__d('configurations','Enable',true))));
	?>
	</fieldset>
<?php echo $this->Form->end(__d('configurations','Submit'));?>
</div>
<?php echo $this->element('/menu/left')?>

